﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsGame1
{
    public class StateMachine
    {
        public State state;

        public void Update(Timer t)
        {
            if (state != null)
            {
                bool ret = state.Update(t);
                if (ret == false)
                    state = null;
            }
        }
    }
}
